//-----------------------------------------------------------------------
// <copyright file="SanPhamBase.cs" company="Pyramid Consulting">
//     Copyright (c) Pyramid Consulting. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace APPro.Entities
{
	[Serializable]
	public class SanPhamBase
	{
		
		#region Variable Declarations
		private string				maSanPham = string.Empty;
		private string				tenSanPham = string.Empty;
		private int				soDiem = 0;
		private string				noiDung = string.Empty;
		private string				chiTiet = string.Empty;
		private int?				danhMuc = null;
		private string				anhDaiDien = string.Empty;
		private string				anhLon = string.Empty;
		#endregion
		
		#region Constructors
		public SanPhamBase() {}
		
		public SanPhamBase (
			string maSanPham,
			string tenSanPham,
			int soDiem,
			string noiDung,
			string chiTiet,
			int? danhMuc,
			string anhDaiDien,
			string anhLon)
		
		{
			this.maSanPham = maSanPham;
			this.tenSanPham = tenSanPham;
			this.soDiem = soDiem;
			this.noiDung = noiDung;
			this.chiTiet = chiTiet;
			this.danhMuc = danhMuc;
			this.anhDaiDien = anhDaiDien;
			this.anhLon = anhLon;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string MaSanPham
		{
			get { return maSanPham; }
			set { maSanPham = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string TenSanPham
		{
			get { return tenSanPham; }
			set { tenSanPham = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int SoDiem
		{
			get { return soDiem; }
			set { soDiem = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string NoiDung
		{
			get { return noiDung; }
			set { noiDung = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string ChiTiet
		{
			get { return chiTiet; }
			set { chiTiet = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int? DanhMuc
		{
			get { return danhMuc; }
			set { danhMuc = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string AnhDaiDien
		{
			get { return anhDaiDien; }
			set { anhDaiDien = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string AnhLon
		{
			get { return anhLon; }
			set { anhLon = value; }
		}
		
		#endregion
	}//End Class
	
	public enum SanPhamColumns
	{
		MaSanPham,
		TenSanPham,
		SoDiem,
		NoiDung,
		ChiTiet,
		DanhMuc,
		AnhDaiDien,
		AnhLon
	}//End enum
}